package com.macro.mall.portal.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.macro.mall.mgb.model.Product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;


import java.math.BigDecimal;

/**
 * 秒杀信息和商品对象封装
 */
@Data
@TableName("pms_product") // 指定主表
public class FlashPromotionProduct extends Product {
    @Schema(description = "秒杀价格")
    @TableField(exist = false) // 表示不是数据库字段
    private BigDecimal flashPromotionPrice;

    @Schema(description = "用于秒杀到数量")
    @TableField(exist = false)
    private Integer flashPromotionCount;

    @Schema(description = "秒杀限购数量")
    @TableField(exist = false)
    private Integer flashPromotionLimit;
}